# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         demo03
# Description:   捕捉异常
# Author:       ASUS
# Date:         2019/3/20
#-------------------------------------------------------------------------------

num = 100

a_list = [2,23,45,69,"p"]

def chfa(*args):
    for item in args:
        print(num / item)

if __name__=="__main__":
    try:
        chfa(*a_list)
    except ValueError as e:
        print("ValueError",e)
    except Exception as e:
        print("Exception",e)
    except:
        print("未知异常")
    #捕捉异常后的语句可以执行
    print(a_list)



